<template>
	<view>
		<logistics :orderInfo="orderInfo" :logisticsInfo="logisticsInfo"></logistics>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderInfo:{},  //订单信息
				logisticsInfo:{},  //物流信息
			}
		},
		onLoad(option) {
			console.log(option);
			if(option.orderInfo != 'undefined') {
				let orderInfo = JSON.parse(option.orderInfo);
				this.orderInfo = orderInfo;
				let logistics = JSON.parse(orderInfo.logistics.replace(/'/g, '"'));
				console.log('yui0000',logistics);
				logistics.traces = logistics.traces.reverse();
				this.logisticsInfo = logistics;
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
